package com.lagou.docker.boot.mvc.service;

import com.lagou.docker.boot.mvc.mapper.UserMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class UserService {


    final UserMapper userMapper;

    @Cacheable(cacheNames = "user")
    public Object findAll() {
        return userMapper.selectList(null);
    }

}
